// pages/Featured/components/crid/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    crid:{
      type:Array,
      value:[]
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    
  },

  /**
   * 组件的方法列表
   */
  methods: {
    gotoDetails(e){
      let id = e.currentTarget.id
      wx.navigateTo({
        url: `/pages/Details/main/index?id=${id}`,
      })
    },
    // 跳转全屋
    gotopanoramaUrl(e){
      let url = e.currentTarget.dataset.url
      console.log(url)
      wx.navigateTo({
        url: `/pages/H5/main/index?url=${encodeURIComponent(url)}`,
      })
    }
  }
})
